﻿#replace ( and ) in alias
$badGroup | % {Get-DistributionGroup $_.identity} | % {if ($_.Alias -match '[\(\)]') {Set-DistributionGroup -Identity $_.Identity  -Alias ($_.Alias -replace '[\(\)]','_') }}

